# $Id$
# Maintainer:  Tom Gundersen
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: tobias <tobias@archlinux.org>
# Contributor: Sarah Hay <sarah@archlinux.org>

pkgname=xvidcore
pkgver=1.3.4
pkgrel=1
pkgdesc='XviD is an open source MPEG-4 video codec'
arch=('i686' 'x86_64')
url='http://www.xvid.org/'
license=('GPL')
depends=('glibc')
makedepends=('nasm')
provides=('libxvidcore.so')
source=(http://downloads.xvid.org/downloads/$pkgname-$pkgver.tar.bz2)
md5sums=('5e68b84e3286b7bbaa95ddc34f0fcace')

build() {
  cd $pkgname/build/generic
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname/build/generic
  make DESTDIR="$pkgdir" install
}
